import request from "../../http";
const orderApi = {
  async getOrderData(query) {
    return request({
      url: "/api/order/list",
      method: "get",
      params: query
    });
  },
  async queryOrderData(query) {
    return request({
      url: "/api/order/list",
      method: "get",
      params: query
    });
  },
  async getOrderDetail(orderId) {
    return request({
      url: `/api/order/${orderId}`,
      method: "get"
    });
  },
  async getTempData(orderId) {
    return request({
      url: `/api/customControl/${orderId}`,
      method: "get"
    });
  },
  async confirmOrder(params) {
    return request({
      url: "/api/order/changeStatus",
      method: "post",
      data: params
    });
  }
};

export default orderApi;
